# coding=utf-8
import requests


# # 添加图书的get请求
# url = "http://localhost:5000/addbook"
# res = requests.get(url).text
# print(res)

# 添加图书的post请求
# url = "http://localhost:5000/add"
# res = requests.post(url,data={'name': '777777777', 'price': '777777777', 'summary': '77777777', 'quantity': '777777777'})
# print(res)

# # 修改图书信息
# url = "http://localhost:5000/change"
# res = requests.post(url,data={'bid':4,'name': '55555', 'price': '5555555', 'summary': '4444', 'quantity': '5'})
# print(res)

# # by bid delete book
# url = "http://127.0.0.1:5000/delete/10"
# res = requests.get(url).text
# print(res)

# # by bid select book
# url = "http://127.0.0.1:5000/select/4"
# res = requests.get(url).text
# print(res)


# 模糊查询
url = "http://127.0.0.1:5000/search?name=4&summary=2"
res = requests.get(url).text
print(res)



